package com.aaa.service;

import com.aaa.dto.AddOrderDto;
import com.aaa.dto.OrderDetailDto;
import com.aaa.dto.OrderDto;
import com.aaa.pojo.DefaultMsg;

import java.util.List;

public interface OrderService {

    List<OrderDto> findOrderByUserId(Integer userId);

    List<OrderDetailDto> findOrderDetailByOrderId(Integer orderId);

    int updateStatusByOrderId(Integer orderId);

    int deleteOrderByOrderId(Integer orderId);

    DefaultMsg updateStatusByOrderId_4(Integer orderId);

    DefaultMsg updateStatusByOrderId_1(Integer orderId);

    DefaultMsg addOrderByUserId(AddOrderDto addOrderDto);

}
